//
//  XJHDateUtils.swift
//  PublicPod
//
//  Created by 许俊华 on 2021/9/3.
//

import UIKit

open class XJHDateUtils: NSObject {
    static let DATE_TIME_FORMATTER = "yyyy-MM-dd HH:mm:ss"
    static let DATE_TIME_FORMATTER2 = "yyyyMMddHHmmss"
    
    // 日期格式化
    public static func dateTimeFormatter() -> String {
        let dateFormatter:DateFormatter = DateFormatter();
        dateFormatter.dateFormat = DATE_TIME_FORMATTER
        return dateFormatter.string(from: Date())
    }
    
    public static func dateTimeFormatter2() -> String {
        let dateFormatter:DateFormatter = DateFormatter();
        dateFormatter.dateFormat = DATE_TIME_FORMATTER2
        return dateFormatter.string(from: Date())
    }
}
